//
//  NSObject+XMMember.h
//  extension
//
//  Created by chi on 14-8-26.
//  Copyright (c) 2014年 xiaoming. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "XMIvar.h"
#import "XMMethod.h"

/**
 *  遍历所有类的block（父类）
 */
typedef void (^XMClassesBlock)(Class c, BOOL *stop);

@interface NSObject (XMMember)

/**
 *  遍历所有的成员变量
 */
- (void)enumerateIvarsWithBlock:(XMIvarsBlock)block;

/**
 *  遍历所有的方法
 */
- (void)enumerateMethodsWithBlock:(XMMethodsBlock)block;

/**
 *  遍历所有的类
 */
- (void)enumerateClassesWithBlock:(XMClassesBlock)block;
@end
